<!DOCTYPE html>
<html lang="en">
<head>
    <title><%- title %></title>
    <%- include common %>
</head>
<body>
    <%- include("head",{title:'home'}) %>
    <h2 class="text-danger"><%- title %></h2>
    <% if(username){ %>
        <h2>用户名<%- username %></h2>
        <p>登录时间:<%- logintime %></p>
        <button class="btn btn-info"  onclick="window.location.href='/list'">电影列表</button>
        <button class="btn btn-danger" onclick="window.location.href='/logout'">点击退出</button>
    <% }else{ %>
        <button class="btn btn-primary" onclick="window.location.href='/register'">注册</button>
        <button class="btn btn-success" onclick="window.location.href='/login'">登录</button>
    <% } %>
    <%- include foot %>
</body>
</html>